#! /usr/bin/env python
import os,sys
(d1,d2,d3) = os.getloadavg()
if d1 >= 5.0:
        print ("GETLOADAVG CRITICAL: Load average is %.2f" %(d1))
        sys.exit(2)
elif d1 >= 2.0:
        print ("GETLOADAVG WARNING: Load average is %.2f" %(d1))
else:
        print ("GETLOADAVG OK: Load average is %.2f" %(d1))
